<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>康贝儿童医院预约管理系统</title>
<link href="/Public/css/bootstrap.min.css" rel="stylesheet">
<link href="/Public/css/metisMenu.css" rel="stylesheet">
<link href="/Public/css/sb-admin.css" rel="stylesheet">
<link href="/Public/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="/Public/js/html5shiv.js"></script>
<script src="/Public/js/respond.min.js"></script>
<![endif]-->
<script>
var ajax_monthgoal_charts="<?php echo U('Index/ajax_monthgoal_charts');?>";
var zxdy_ajaxlist="<?php echo U('Index/zxdy_ajaxlist');?>";
var qdxx_ajaxlist="<?php echo U('Index/qdxx_ajaxlist');?>";
var lywz_ajaxlist="<?php echo U('Index/lywz_ajaxlist');?>";
var ajax_jiduchart="<?php echo U('Index/ajax_jiduchart');?>";


</script>
<style>
red{color:red;}
</style>

</head>

<body>
<div id="wrapper"> <nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="margin-bottom: 0">
  <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
    <a class="navbar-brand" href="<?php echo U('Index/index');?>"><img src="/Public/images/logo.png"/></a> </div>
  <ul class="nav navbar-top-links navbar-right">
    <li> <a><i class="fa fa-user-circle-o"></i> <?php echo (session('juese')); ?></a></li>
    <li> <a><i class="fa fa-user"></i> <?php echo (session('username')); ?></a></li>
    <li> <a href="<?php echo U('Base/userex');?>"><i class="fa fa-user"></i> 修改密码</a></li>
    <li> <a href="<?php echo U('Base/logout');?>"><i class="fa fa-fw fa-power-off"></i> 退出登录</a> </li>
  </ul>
</nav>
<div class="sidebar left-sidebar" role="navigation">
  <div class="sidebar-nav navbar-collapse">
    <ul class="nav" id="side-menu">
      <?php if(is_array($menu)): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li> <a><i class="fa <?php echo ($vo["icon"]); ?> fa-fw"></i> <?php echo ($vo["qx_name"]); ?><span class="fa arrow"></span></a>
          <ul class="nav nav-second-level collapse">
            <?php if(is_array($vo['children'])): $i = 0; $__LIST__ = $vo['children'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li <?php if(($v["state"]) == "0"): ?>style="display:none;"<?php endif; ?>><a href="<?php echo U("$v[url]");?>"><?php echo ($v["qx_name_1"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
          </ul>
        </li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
</div>

<script src="/Public/js/jquery.js"></script> 
<link rel="stylesheet" type="text/css" href="/Public/js/layer/iCheck/flat/green.css" />
<script type="text/javascript" src="/Public/js/layer/iCheck/icheck.min.js"></script>
<link rel="stylesheet" type="text/css" href="/Public/js/layer/layer.css" />
<script src="/Public/js/bootstrap.min.js"></script> 
<script src="/Public/js/metisMenu.js"></script> 
<script src="/Public/js/sb-admin-2.js"></script> 
<script src="/Public/js/delall.js"></script> 
<script src="/Public/js/layer/bootbox.js"></script> 
<script src="/Public/js/layer/jquery-form.js"></script> 
<script src="/Public/js/layer/common.js"></script> 

  <div id="page-wrapper">
  <nav class="navbreadcrumb"><i class="fa fa-dashboard"></i> <a href="<?php echo U('Index/index');?>">首页</a> > <?php echo ($main_menu); ?><a class="flush_btn hidden-xs" href="javascript:location.replace(location.href);" title="刷新"><i class="fa  fa-repeat"></i> 刷新</a><a class="flush_btn hidden-xs" href="<?php echo U('Index/index');?>" title="返回首页"><i class="fa  fa-home"></i> 返回首页</a></nav>
    <div class="container-fluid">
      <div class="row">
        <div class="col-md-4">
          <div class="panel panel-default">
            <div class="panel-heading"> <i class="fa fa-bar-chart-o fa-fw"></i> 信息统计 </div>
            <div class="panel-body" style="padding:0;">
              <div class="table-responsive" style="margin-bottom:0;">
                <table class="table table-bordered table-hover table-striped" style="border-left:0; border-right:0;">
                  <thead>
                    <tr>
                      <th style=" border-right:0; border-left:0;">网挂</th>
                      <th>录入</th>
                      <th>预到</th>
                      <th><red>实到</red></th>
                      <th>未到</th>
                      <th>登记</th>
                      <th style=" border-right:0; border-left:0;">到率</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                      <td style=" border-right:0; border-left:0;">明日</td>
                      <td>-</td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'tomorrow_yudao'));?>"><?php echo ($info_count['tomorrow_yudao']); ?></a></td>
                      <td>-</td>
                      <td>-</td>
                      <td>-</td>
                      <td style=" border-right:0; border-left:0;">-</td>
                    </tr>
                    <tr>
                     <td style=" border-right:0; border-left:0;">今日</td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'today_add'));?>"><?php echo ($info_count['today_yuyue']); ?></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'today_yudao'));?>"><?php echo ($info_count['today_yudao']); ?></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'today_yidao'));?>"><red><?php echo ($info_count['today_yidao']); ?></red></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'today_weidao'));?>"><?php echo ($info_count['today_weidao']); ?></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'today_gaiyue'));?>"><?php echo ($info_count['today_daizhen']); ?></a></td>
                      <td style=" border-right:0; border-left:0;"><?php echo ($info_count['today_bfb']); ?></td>
                    </tr>
                    <tr>
                     <td style=" border-right:0; border-left:0;">昨日</td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'yesterday_add'));?>"><?php echo ($info_count['yesterday_yuyue']); ?></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'yesterday_yudao'));?>"><?php echo ($info_count['yesterday_yudao']); ?></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'yesterday_yidao'));?>"><red><?php echo ($info_count['yesterday_yidao']); ?></red></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'yesterday_weidao'));?>"><?php echo ($info_count['yesterday_weidao']); ?></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'yesterday_gaiyue'));?>"><?php echo ($info_count['yesterday_daizhen']); ?></a></td>
                     <td style=" border-right:0; border-left:0;"><?php echo ($info_count['yesterday_bfb']); ?></td>
                    </tr>
                    <tr>
                    <td style=" border-right:0; border-left:0;">本月</td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'month_add'));?>"><?php echo ($info_count['month_yuyue']); ?></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'month_yudao'));?>"><?php echo ($info_count['month_yudao']); ?></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'month_yidao'));?>"><red><?php echo ($info_count['month_yidao']); ?></red></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'month_weidao'));?>"><?php echo ($info_count['month_weidao']); ?></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'month_gaiyue'));?>"><?php echo ($info_count['month_daizhen']); ?></a></td>
                     <td style=" border-right:0; border-left:0;"><?php echo ($info_count['month_bfb']); ?></td>
                    </tr>
                    <tr>
                     <td style=" border-right:0; border-left:0;">上月</td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'lastmonth_add'));?>"><?php echo ($info_count['lastmonth_yuyue']); ?></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'lastmonth_yudao'));?>"><?php echo ($info_count['lastmonth_yudao']); ?></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'lastmonth_yidao'));?>"><red><?php echo ($info_count['lastmonth_yidao']); ?></red></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'lastmonth_weidao'));?>"><?php echo ($info_count['lastmonth_weidao']); ?></a></td>
                      <td><a href="<?php echo U('Index/jianbao',array('info'=>'lastmonth_gaiyue'));?>"><?php echo ($info_count['lastmonth_daizhen']); ?></a></td>
                     <td style=" border-right:0; border-left:0;"><?php echo ($info_count['lastmonth_bfb']); ?></td>
                    </tr>
                    <tr>
                     <td style=" border-right:0; border-left:0;">同期对比</td>
                      <td><?php echo ($arr['tqyycz']); ?></td>
                      <td><?php echo ($arr['tqydcz']); ?></td>
                      <td><?php echo ($arr['tqsdcz']); ?></td>
                      <td><?php echo ($arr['tqwdcz']); ?></td>
                      <td><?php echo ($arr['tqdzcz']); ?></td>
                      <td style=" border-right:0; border-left:0;"><?php echo ($arr['tqbfbcz']); ?></td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        </div>
        <div class="col-md-8">
          <div class="panel panel-default">
            <div class="panel-heading"> <i class="fa fa-line-chart fa-fw"></i> 月到院目标完成情况 </div>
            <div class="panel-body" style="padding:0;">
              <div id="monthgoal_charts" style="min-height:240px;"></div>
            </div>
          </div>
        </div>
      </div>
      <div class="row">
        <div class="col-md-4">
          <div class="panel panel-default">
            <div class="panel-heading"><i class="fa fa-user fa-fw"></i> 咨询到院排行
              <div class="pull-right">
                <div class="btn-group">
                  <select class="btn btn-default btn-xs rq-select" id="zxphb_nav">
                    <option value="zxdy_ssy">上上月</option>
                    <option value="zxdy_sy">上月</option>
                    <option value="zxdy_by">本月</option>
                    <option value="zxdy_zt" selected="selected">昨天</option>
                    <option value="zxdy_jt">今天</option>
                  </select>
                </div>
              </div>
            </div>
            <div class="panel-body" style="padding:0;">
              <div class="table-responsive table_phb">
                <table class="table table-bordered table-hover table-striped" id="zxphb" style="border-left:0;">
                </table>
              </div>
            </div>
          </div>
        </div>
        <div class="col-md-4">
          <div class="panel panel-default">
            <div class="panel-heading"> <i class="fa fa-clone fa-fw"></i> 渠道信息排行
              <div class="pull-right">
                <div class="btn-group">
                  <select class="btn btn-default btn-xs rq-select" id="qdxxphb_nav">
                    <option value="qdxx_ssy">上上月</option>
                    <option value="qdxx_sy">上月</option>
                    <option value="qdxx_by">本月</option>
                    <option value="qdxx_zt" selected="selected">昨天</option>
                    <option value="qdxx_jt">今天</option>
                  </select>
                </div>
              </div>
            </div>
            <div class="panel-body" style="padding:0;">
              <div class="table-responsive table_phb">
                <table class="table table-bordered table-hover table-striped" id="qdxxphb" style="border-left:0;">
                </table>
              </div>
            </div>
          </div>
        </div>
        <div class="col-md-4">
          <div class="panel panel-default">
            <div class="panel-heading"> <i class="fa fa-navicon fa-fw"></i> 来源网站排行
              <div class="pull-right">
                <div class="btn-group">
                  <select class="btn btn-default btn-xs rq-select" id="lywzphb_nav">
                    <option value="lywz_ssy">上上月</option>
                    <option value="lywz_sy">上月</option>
                    <option value="lywz_by">本月</option>
                    <option value="lywz_zt" selected="selected">昨天</option>
                    <option value="lywz_jt">今天</option>
                  </select>
                </div>
              </div>
            </div>
            <div class="panel-body" style="padding:0;">
              <div class="table-responsive table_phb">
                <table class="table table-bordered table-hover table-striped" id="lywzphb" style="border-left:0;">
                </table>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="row">
        <div class="col-md-12">
          <div class="panel panel-default">
            <div class="panel-heading"> <i class="fa fa-area-chart fa-fw"></i> 季度预约/到院人数
              <div class="pull-right">
                <div class="btn-group">
                  <select class="btn btn-default btn-xs rq-select" id="jdinfo">
                    <option value="jd_ssy">上上月</option>
                    <option value="jd_sy" >上月</option>
                    <option value="jd_by" selected="selected">本月</option>
                  </select>
                </div>
              </div>
            </div>
            <div class="panel-body" style="padding:0;">
              <div id="jiduchartcontent" style="min-height:250px;"></div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="/Public/js/jquery.js"></script> 
<script src="/Public/js/bootstrap.min.js"></script> 
<script src="/Public/js/metisMenu.js"></script> 
<script src="/Public/js/sb-admin-2.js"></script> 
<script type="text/javascript" src="/Public/js/Highcharts/js/highcharts.js"></script> 
<script type="text/javascript" src="/Public/js/Highcharts/js/modules/exporting.js"></script> 
<script type="text/javascript" src="/Public/js/indexajax.js"></script>
</body>
</html>